package com.me.customerdemo.service.impl;

import com.me.customerdemo.dao.CstManagerMapper;
import com.me.customerdemo.pojo.CstManager;
import com.me.customerdemo.service.CstManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CstManagerServerImpl implements CstManagerService {

    @Autowired
    private CstManagerMapper cstManagerMapper;

    @Override
    public List<CstManager> selectAll() {
        return cstManagerMapper.selectAll();
    }

    @Override
    public boolean updateById(CstManager cstManager) {
        return cstManagerMapper.updateById(cstManager)>0? true:false;
    }

    @Override
    public boolean deleteById(int id) {
        return cstManagerMapper.deleteById(id)>0?true:false;
    }

    @Override
    public boolean apply(CstManager cstManager) {
        return cstManagerMapper.apply(cstManager)>0?true:false;
    }
}
